package ch1.exe;

import java.util.Scanner;

public class MiMaTest {

	public static void main(String[] args) {
		Administrator a = new Administrator();
		a.name = "admin";
		a.mima = "111111";
		a.shoe();
		System.out.println("改密码：>>>>");
		Scanner input = new Scanner(System.in);
		System.out.print("请输入用户名：");
		String b = input.next();
		System.out.println("请输入密码：");
		String c = input.next();
		if (a.name.equals(b) && a.mima.equals(c)) {
			System.out.println("请输入新的密码：");
			a.mima = input.next();
		} else {
			System.out.println("用户名或者密码输入错误");
		}
		a.shoe();
	}

}
